<!DOCTYPE html>
<html>
<head>
    <title>{$category.name} {$category.seo_title} {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$category.seo_description},{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <hook name="before_head_end"/>
</head>


<body class="post-template-default single single-post postid-105935 single-format-standard site-layout-2">
    <!-- 头部 -->  
    <include file="public@nav"/>
    <!-- /头部 -->  

    <!-- 主体 -->
    <div id="main-container" class="container clearfix">
        <section class="post-left">
        
        <!-- 文章列表 -->
        <div class="post-main clearfix">
            <h1 class="post-title">{$article.post_title}</h1>
            <div class="post-con clearfix">
                <div class="article-meta"><span class="item">{:date('Y-m-d',$article.published_time)}</span>作者：<span class="item">{$article.user.user_nickname}</span></div>
                <php>
                    $before_content_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'user_id'=>$article['user_id'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'object'=>$article
                    ];
                </php>
                <hook name="before_content" param="before_content_hook_param"/>

                <article class="article-content">
                    <blockquote>
                        {$article.post_excerpt}
                    </blockquote>
                    {$article.post_content}
                </article>

                <div class="reshare clearfix center-block">
                    <div class="reshare-wx fl">
                        <a href="javascript:;" class="post_icon_wx fa fa-weixin fa-4x" title="分享到微信朋友圈">
                            <div class="s-wechat-hover">                                                                                                         
                                <p class="mar-b20">微信扫一扫，分享到朋友圈</p>                                                                                          
                                <img src="" data-pid="">                                                                                                     
                                </div>
                        </a>
                    </div>
                </div>
                <if condition="!empty($article['post_source'])">
                    <div>
                        <b>注：本文转载自{$article.post_source}，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
                    </div>
                </if>

                <php>
                    $after_content_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'user_id'=>$article['user_id'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'object'=>$article
                    ];
                </php>
                <hook name="after_content" param="after_content_hook_param"/>

                <php>
                    $comment_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'user_id'=>$article['user_id'],
                    ];
                    $comment=hook_one('comment',$comment_hook_param);
                </php>

                <if condition="empty($comment) && cmf_get_current_admin_id()">
                    <div style="border: 1px dashed #ddd;min-height: 200px;padding-top: 50px;">
                        <div class="alert alert-warning" role="alert">
                            此区域这为评论区，请安装评论插件！<br>
                            <em>注：普通用户不会看到此提示！</em>
                        </div>
                    </div>
                </if>
                {$comment}
            </div>
        </div>

        </section><!-- /section.post-left -->
        
        <include file='public@sidebar'/>
    </div>
    <!-- /主体 -->
<include file="public@footer"/>

<include file="public@scripts"/>
<hook name="before_body_end"/>
</body>
</html>